@isTest
public class ReturnOrderPDFControllerTest
{
    static testMethod void ReturnOrderPDFControllerTest()
    {
        //新建客户
        Account acc = TestUtils.createAccount();
        insert acc;
        //新建退货通知单
        ReturnRequisition__c rr = new ReturnRequisition__c(
        	Account__c = acc.Id,
            Company__c ='四川省迈克实业有限公司',
            Invoice__c = false,
            ReturnDay__c = Date.newInstance(2017, 10, 1)
        );
        insert rr;
        //新建退货通知单明细
        ReturnRequisitionList__c rrl = new ReturnRequisitionList__c(
        	Note__c='测试备注,ceshibeizhu,测试备注',
            ReturnRequisition__c = rr.Id,
            RefundNumber__c = 1,
            Account__c = acc.Id
        ); 
        insert rrl;
        PageReference page = new PageReference('/apex/ReturnOrderPDF?id=' + rr.Id);
        System.Test.setCurrentPage(page);
        ReturnOrderPDFController apc=new ReturnOrderPDFController();
        
    }
}